package org.jsola.hr.dao;

import org.apache.ibatis.annotations.Param;
import org.jsola.hr.entity.ChannelGroupUserDO;
import org.jsola.hr.vo.ChannelGroupUserListVO;
import org.jsola.orm.mapper.IJsolaMapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 渠道分组用户中间表
 *
 * @author zhr
 */
@Repository("hrChannelGroupUserDAO")
public interface IChannelGroupUserDAO extends IJsolaMapper<ChannelGroupUserDO> {

    /**
     * 通过分组id查询所有的管理员
     * @param groupId 分组id
     * @param siteId 站点id
     * @return list
     */
    List<ChannelGroupUserListVO> getUserByGroupId(@Param("groupId") String groupId,@Param("siteId") String siteId);
}

